/**
 * 饮食管理模拟数据
 */

// 食物库数据
export const foodLibrary = [
  {
    id: 1,
    name: '煮鸡蛋',
    category: 'protein',
    categoryName: '蛋白质类',
    calories: 72,
    carbs: 0.6,
    protein: 6.3,
    fat: 4.8,
    gi: 0,
    unit: '个',
    weight: 50,
    imageUrl: '/static/images/foods/egg.png',
    suitable: true,
    remarks: '适合糖尿病患者食用，富含优质蛋白质'
  },
  {
    id: 2,
    name: '牛奶',
    category: 'dairy',
    categoryName: '奶制品',
    calories: 42,
    carbs: 5.0,
    protein: 3.3,
    fat: 1.0,
    gi: 30,
    unit: '杯',
    weight: 100,
    imageUrl: '/static/images/foods/milk.png',
    suitable: true,
    remarks: '低脂牛奶是糖尿病患者理想的钙质来源'
  },
  {
    id: 3,
    name: '全麦面包',
    category: 'grains',
    categoryName: '谷物类',
    calories: 65,
    carbs: 12.0,
    protein: 3.6,
    fat: 1.1,
    gi: 45,
    unit: '片',
    weight: 30,
    imageUrl: '/static/images/foods/wheat_bread.png',
    suitable: true,
    remarks: '富含膳食纤维，有助于控制血糖'
  },
  {
    id: 4,
    name: '白米饭',
    category: 'grains',
    categoryName: '谷物类',
    calories: 130,
    carbs: 28.7,
    protein: 2.7,
    fat: 0.3,
    gi: 75,
    unit: '碗',
    weight: 100,
    imageUrl: '/static/images/foods/rice.png',
    suitable: false,
    remarks: '高GI值食物，建议少量食用或与蛋白质、纤维一起食用'
  },
  {
    id: 5,
    name: '西兰花',
    category: 'vegetable',
    categoryName: '蔬菜类',
    calories: 34,
    carbs: 6.6,
    protein: 2.8,
    fat: 0.4,
    gi: 15,
    unit: '份',
    weight: 100,
    imageUrl: '/static/images/foods/broccoli.png',
    suitable: true,
    remarks: '富含维生素和纤维素，有助于控制血糖'
  },
  {
    id: 6,
    name: '苹果',
    category: 'fruit',
    categoryName: '水果类',
    calories: 52,
    carbs: 14.0,
    protein: 0.3,
    fat: 0.2,
    gi: 38,
    unit: '个',
    weight: 100,
    imageUrl: '/static/images/foods/apple.png',
    suitable: true,
    remarks: '中等GI值水果，适量食用'
  },
  {
    id: 7,
    name: '瘦猪肉',
    category: 'protein',
    categoryName: '蛋白质类',
    calories: 143,
    carbs: 0,
    protein: 21.0,
    fat: 6.0,
    gi: 0,
    unit: '份',
    weight: 100,
    imageUrl: '/static/images/foods/pork.png',
    suitable: true,
    remarks: '优质蛋白质来源，适合糖尿病患者食用'
  },
  {
    id: 8,
    name: '鲜橙汁',
    category: 'beverage',
    categoryName: '饮料类',
    calories: 45,
    carbs: 10.4,
    protein: 0.7,
    fat: 0.2,
    gi: 50,
    unit: '杯',
    weight: 100,
    imageUrl: '/static/images/foods/orange_juice.png',
    suitable: false,
    remarks: '含糖量高，建议少量饮用，最好选择吃整个水果'
  },
  {
    id: 9,
    name: '燕麦片',
    category: 'grains',
    categoryName: '谷物类',
    calories: 68,
    carbs: 12.0,
    protein: 2.5,
    fat: 1.5,
    gi: 55,
    unit: '碗',
    weight: 30,
    imageUrl: '/static/images/foods/oatmeal.png',
    suitable: true,
    remarks: '富含可溶性纤维，有助于控制血糖'
  },
  {
    id: 10,
    name: '三文鱼',
    category: 'protein',
    categoryName: '蛋白质类',
    calories: 206,
    carbs: 0,
    protein: 22.0,
    fat: 13.0,
    gi: 0,
    unit: '份',
    weight: 100,
    imageUrl: '/static/images/foods/salmon.png',
    suitable: true,
    remarks: '富含omega-3脂肪酸，对心脏健康有益'
  }
];

// 饮食记录数据
export const dietRecords = [
  {
    id: 101,
    date: '2023-06-10',
    meals: [
      {
        id: 1001,
        type: 'breakfast',
        time: '07:30',
        foods: [
          { id: 3, name: '全麦面包', quantity: 2, calories: 130 },
          { id: 2, name: '牛奶', quantity: 1, calories: 42 }
        ],
        totalCalories: 172,
        totalCarbs: 29,
        bloodSugar: { before: 5.6, after: 6.4 }
      },
      {
        id: 1002,
        type: 'lunch',
        time: '12:00',
        foods: [
          { id: 4, name: '白米饭', quantity: 0.5, calories: 65 },
          { id: 7, name: '瘦猪肉', quantity: 1, calories: 143 },
          { id: 5, name: '西兰花', quantity: 1, calories: 34 }
        ],
        totalCalories: 242,
        totalCarbs: 20.35,
        bloodSugar: { before: 5.8, after: 7.2 }
      },
      {
        id: 1003,
        type: 'dinner',
        time: '18:00',
        foods: [
          { id: 9, name: '燕麦片', quantity: 1, calories: 68 },
          { id: 10, name: '三文鱼', quantity: 0.8, calories: 164.8 }
        ],
        totalCalories: 232.8,
        totalCarbs: 12,
        bloodSugar: { before: 5.5, after: 6.8 }
      }
    ],
    totalDailyCalories: 646.8,
    totalDailyCarbs: 61.35,
    remark: '今天饮食控制得不错，餐后血糖有点偏高'
  },
  {
    id: 102,
    date: '2023-06-09',
    meals: [
      {
        id: 1004,
        type: 'breakfast',
        time: '08:00',
        foods: [
          { id: 1, name: '煮鸡蛋', quantity: 1, calories: 72 },
          { id: 9, name: '燕麦片', quantity: 1, calories: 68 }
        ],
        totalCalories: 140,
        totalCarbs: 12.6,
        bloodSugar: { before: 5.4, after: 6.2 }
      },
      {
        id: 1005,
        type: 'lunch',
        time: '12:30',
        foods: [
          { id: 4, name: '白米饭', quantity: 0.8, calories: 104 },
          { id: 7, name: '瘦猪肉', quantity: 1.2, calories: 171.6 }
        ],
        totalCalories: 275.6,
        totalCarbs: 22.96,
        bloodSugar: { before: 5.5, after: 6.9 }
      },
      {
        id: 1006,
        type: 'dinner',
        time: '18:30',
        foods: [
          { id: 3, name: '全麦面包', quantity: 1, calories: 65 },
          { id: 10, name: '三文鱼', quantity: 1, calories: 206 },
          { id: 6, name: '苹果', quantity: 0.5, calories: 26 }
        ],
        totalCalories: 297,
        totalCarbs: 19,
        bloodSugar: { before: 5.2, after: 6.3 }
      }
    ],
    totalDailyCalories: 712.6,
    totalDailyCarbs: 54.56,
    remark: '今天血糖控制得很好'
  }
];

// 食谱推荐
export const dietRecommendations = [
  {
    id: 201,
    title: '糖友早餐推荐',
    description: '高纤维、低GI的早餐组合',
    image: '/static/images/diet/breakfast.png',
    meals: [
      {
        name: '全麦面包配鸡蛋',
        foods: [
          { id: 3, name: '全麦面包', quantity: 2, unit: '片' },
          { id: 1, name: '煮鸡蛋', quantity: 1, unit: '个' }
        ],
        calories: 202,
        carbs: 24.6,
        protein: 16.2,
        fat: 7
      },
      {
        name: '燕麦粥配牛奶',
        foods: [
          { id: 9, name: '燕麦片', quantity: 1, unit: '碗' },
          { id: 2, name: '牛奶', quantity: 1, unit: '杯' }
        ],
        calories: 110,
        carbs: 17,
        protein: 5.8,
        fat: 2.5
      }
    ],
    tips: '早餐应该摄入足够的优质蛋白质和复合碳水化合物，避免单一的高GI食物'
  },
  {
    id: 202,
    title: '血糖友好午餐',
    description: '平衡营养的午餐组合',
    image: '/static/images/diet/lunch.png',
    meals: [
      {
        name: '三文鱼蔬菜沙拉',
        foods: [
          { id: 10, name: '三文鱼', quantity: 1, unit: '份' },
          { id: 5, name: '西兰花', quantity: 1, unit: '份' }
        ],
        calories: 240,
        carbs: 6.6,
        protein: 24.8,
        fat: 13.4
      },
      {
        name: '瘦肉蔬菜饭',
        foods: [
          { id: 4, name: '白米饭', quantity: 0.5, unit: '碗' },
          { id: 7, name: '瘦猪肉', quantity: 1, unit: '份' },
          { id: 5, name: '西兰花', quantity: 1, unit: '份' }
        ],
        calories: 242,
        carbs: 20.35,
        protein: 23.8,
        fat: 6.4
      }
    ],
    tips: '午餐可以适量摄入碳水化合物，但要控制份量，多搭配蛋白质和蔬菜'
  },
  {
    id: 203,
    title: '轻食晚餐方案',
    description: '低热量、低碳水的晚餐选择',
    image: '/static/images/diet/dinner.png',
    meals: [
      {
        name: '烤鱼配蔬菜',
        foods: [
          { id: 10, name: '三文鱼', quantity: 0.8, unit: '份' },
          { id: 5, name: '西兰花', quantity: 1.5, unit: '份' }
        ],
        calories: 216,
        carbs: 9.9,
        protein: 26.2,
        fat: 10.6
      },
      {
        name: '蛋白质沙拉',
        foods: [
          { id: 1, name: '煮鸡蛋', quantity: 1, unit: '个' },
          { id: 5, name: '西兰花', quantity: 1, unit: '份' }
        ],
        calories: 106,
        carbs: 7.2,
        protein: 9.1,
        fat: 5.2
      }
    ],
    tips: '晚餐应该少吃碳水化合物，以蛋白质和蔬菜为主，避免睡前血糖波动'
  }
];

// 导出默认数据
export default {
  foodLibrary,
  dietRecords,
  dietRecommendations
}; 